package com.example.multithread;

public class ThreadMethodTest {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            new Thread(() -> {
                System.out.println("当前线程名称为: " + Thread.currentThread().getName());
            },"ThreadNmae: " + i).start();
        }
    }
}
